package com.aha.dataanalyzeandview.mapper;

import com.aha.dataanalyzeandview.entity.metadata.ConnectionInfoEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/******************************
 * Project:           data-analyze-and-view
 * FileName:          ConnectionInfoMapper.java
 * ClassName:         ConnectionInfoMapper
 * Time:              2020/8/23 8:57
 * Version:           1.00
 * Author:            努力就是魅力
 * Description:       TODO
 ******************************/

@Mapper
public interface ConnectionInfoMapper {


    /**
     * 查询所有的数据源连接信息
     * @return
     */
    public List<ConnectionInfoEntity> queryAllConnectionInfo (@Param("map") Map<String, Object> map);


    /**
     * 添加数据源信息
     * @param connectionInfoEntity
     * @return
     */
    public Integer addConnectionInfo(ConnectionInfoEntity connectionInfoEntity);
}
